package br.com.absolutech.study.chapter5.p218;

/**
 * 
 * To test this class you must declare "-enableassertions" on VM arguments
 * 
 * @author Romulo
 *
 */
public class Assertivas {

    public static void main(String[] args) {
	doStuff1();
	doStuff2();
    }

    private static void doStuff1() {
	int y = 5;
	int x = 4;
	assert (y > x) : "y is " + y + " x is " + x;
	//some useful code considering that y > x
    }

    private static void doStuff2() {
	int y = 2;
	int x = 4;
	assert (y > x) : "y is " + y + " x is " + x;
	//some useful code considering that y > x
    }
}
